﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="GuiGioHang.aspx.cs" Inherits="GomMinhLong.GuiGioHang" %>

<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" TagPrefix="cc" %>
<%@ Register Src="~/Module/ucBreadcrumb.ascx" TagName="ucBreadcrumb" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #RegisterForm
        {
            margin: 5px -6px 5px 0;
            width: 100%;
            
        }
        .done
        {
            background: url("images/done.png" ) no-repeat;
            width: 101px;
            height: 31px;
            border: none;
        }
        .dTTTT
        {
            float: left;
            margin: 5px -6px 5px 0;
            padding: 15px 5px;
            width: 100%;
        }
        .sp_info_detai
        {
        	color: #444444;
            float: left;
            font-weight: bold;
            padding: 0;
            width: 110px;
        }
        .button3
        {
            background: none repeat scroll 0 0 #218012;
            border: 2px solid #157C15;
            color: #FFFFFF;
            padding: 0px 20px 0px 20px;
        }
        .button
        {
            height: 26px;
        }
        .info_detail
        {
        	list-style-type:none;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="NoiDung">
        <div class="under-right">
            <uc3:ucBreadcrumb id="ucBreadcrumb" runat="server"></uc3:ucBreadcrumb>
            <div class="GuiGioHanh" style="float: left; width: 100%">
                <h3 style="font: 14px; border-bottom: 1px solid #CCCCCC; color: #CC0D01; font-weight: bold; text-transform:uppercase; margin-bottom: 20px;">
                    <asp:Literal runat="server" Text="Thông tin giỏ hàng"></asp:Literal>
                </h3>
                <asp:Label ID="lbl" runat="server"></asp:Label>
                <asp:GridView runat="server" ID="GridGioHang" AutoGenerateColumns="False" EmptyDataText="Không có dữ liệu !"
                        AllowPaging="True" CellPadding="2" Width="700px" BackColor="White" BorderColor="#DFE5E9" BorderStyle="Solid"
                        BorderWidth="1px" OnRowDataBound="GridGioHang_RowDataBound" DataKeyNames="STT">
                        <RowStyle BackColor="White" VerticalAlign="Middle" ForeColor="#330099" />
                        <Columns>
                            <asp:TemplateField HeaderText="STT" ItemStyle-Width="16px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lbSTT" Text="<%# Container.DataItemIndex + 1 %>">
                                    </asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" />
                            </asp:TemplateField>
                              <asp:TemplateField HeaderText="Hình ảnh" ItemStyle-Width="65px">
                                <ItemTemplate>
                                    <a class="fackybox" href="/Media/<%#Eval("HinhAnh")%>" />
                                    <img src="/Media/<%#Eval("HinhAnh")%>" height="47px" width="47px" style=" margin:10px; border:1px solid #DFE5E9; padding:2px;" alt="<%#DataBinder.Eval(Container.DataItem,"TenSanPham") %>" />
                                    </a>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Tên sản phẩm" ItemStyle-Width="180px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="txtTen" Text='<%#DataBinder.Eval(Container.DataItem,"TenSanPham") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" Font-Bold="true" VerticalAlign="Middle" />
                            </asp:TemplateField>
                          
                            <asp:TemplateField HeaderText="Số lượng" ItemStyle-Width="50px">
                                <ItemTemplate>
                                    <%#DataBinder.Eval(Container.DataItem,"SoLuong") %>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Đơn giá" ItemStyle-HorizontalAlign="Center"
                                ItemStyle-Width="90px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lbDG" Text='<%#DataBinder.Eval(Container.DataItem,"DonGia") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Thành tiền" ItemStyle-HorizontalAlign="Center"
                                ItemStyle-Width="110px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lbThanhTien" Font-Bold="true" Text='<%#DataBinder.Eval(Container.DataItem,"ThanhTien") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            
                        </Columns>
                        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                        <HeaderStyle HorizontalAlign="Center" Height="30px" BackColor="#EAEEF0" VerticalAlign="Middle" Font-Bold="True" ForeColor="#000"  />
                    </asp:GridView>
                    
                <br />
                <div style="width: 400px; margin-left: auto; margin-right: 10px; text-align: right;">
                    <asp:Label ID="lblSum" runat="server"></asp:Label><br /><br />
                    <asp:Label ID="lbThanhTien" runat="server"></asp:Label>
                </div>
                <div align="center" style="margin-top: 15px;" class="ltr">
                </div>
                <div id="RegisterForm">
                    <h3 style="font: 14px; border-bottom: 1px solid #CCCCCC; color: #CC0D01; font-weight: bold; padding: 0px 0 5px 5px; text-transform:uppercase; margin-bottom: 20px;">
                        <asp:Literal ID="Literal1" runat="server" Text="Thông tin thanh toán"></asp:Literal>
                    </h3>
                    <ul class="append_info">
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal2" runat="server" Text="Họ và tên"></asp:Literal>
                             </span> <span class="info_result">
                            </span>
                            <asp:TextBox runat="server" ID="txtHT" CssClass="ip_info_result" type="text" TabIndex="1"></asp:TextBox><span style="color: Red;">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHT"
                                ErrorMessage="(Lỗi)"></asp:RequiredFieldValidator>
                        </li>
                        <!--END DIV gender-->
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal3" runat="server" Text="Địa chỉ"></asp:Literal></span> <span class="info_result">
                            </span>
                            <asp:TextBox runat="server" ID="txtDC" CssClass="ip_info_result" type="text" TabIndex="2"></asp:TextBox>
                        </li>
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal4" runat="server" Text="Số điện thoại"></asp:Literal> </span> <span
                                class="info_result"></span>
                            <asp:TextBox runat="server" ID="txtsdt" CssClass="ip_info_result" type="text" TabIndex="3"></asp:TextBox><span style="color: Red;">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtsdt"
                                ErrorMessage="(Lỗi)"></asp:RequiredFieldValidator>
                        </li>
                        <!--END DIV gender-->
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal5" runat="server" Text="Email"></asp:Literal></span> <span class="info_result">
                            </span>
                            <asp:TextBox runat="server" ID="txtEmail" CssClass="ip_info_result" type="text" TabIndex="4"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Sai định dạng email"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                        </li>
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal6" runat="server" Text="Kiểu thanh toán"></asp:Literal> </span>
                            <span class="info_result"></span>
                            <asp:TextBox runat="server" ID="txtHTTT" CssClass="ip_info_result" type="text" TabIndex="5"></asp:TextBox>
                        </li>
                        <!--END DIV gender-->
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal7" runat="server" Text="Địa chỉ gửi hàng"></asp:Literal></span>
                            <span class="info_result"></span>
                            <asp:TextBox runat="server" ID="txtDCGH" CssClass="ip_info_result" type="text" TabIndex="6"></asp:TextBox><span style="color: Red;">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtDCGH"
                                ErrorMessage="(Lỗi)"></asp:RequiredFieldValidator>
                        </li>
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal8" runat="server" Text="Ghi chú"></asp:Literal></span> <span class="info_result">
                            </span>
                            <asp:TextBox runat="server" ID="txtGC" CssClass="ip_info_result" type="text" TabIndex="7" Width="500px"
                                Height="100px" TextMode="MultiLine"></asp:TextBox>
                        </li>
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal9" runat="server" Text="Ngày giao hàng"></asp:Literal></span> <span
                                class="info_result"></span>
                            <asp:TextBox runat="server" ID="txtNgayGiaoHang" CssClass="ip_info_result" type="text"
                                TabIndex="8"></asp:TextBox>
                                
                        </li>
                        <li class="info_detail" style="border: none;"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span></span><span class="cl_sp" style="padding-right: 10px;">
                            </span><span class="info_result" style="margin-right: 20px;"></span>
                            <asp:Button ID="btn" runat="server" Text="Gửi đơn hàng" OnClick="btn_Click" CssClass="button button3" />
                            <asp:Button ID="btnHuy" runat="server" Text="Hủy" OnClick="btnHuy_Click" CssClass="button button3" />
                        </li>
                        <!--END DIV gender-->
                    </ul>
                </div>
                <cc:CalendarExtender runat="server" ID="celander1" TargetControlID="txtNgayGiaoHang"
                    Format="MM/dd/yyyy">
                </cc:CalendarExtender>
                <div class="dTTTT">
                    <div class="dTTTTfooter-info">
                        <h3 style="font: 14px; border-bottom: 1px solid #CCCCCC; color: #CC0D01; font-weight: bold; padding: 0px 0 5px 5px; text-transform:uppercase; margin-bottom: 20px;">
                            <asp:Literal ID="Literal10" runat="server" Text="Thông tin liên hệ"></asp:Literal>
                        </h3>
                        <div class="footer-info-left" style="float: left; width: 48%; color: #222222; border-right: 1px solid #CCCCCC;">
                            <p>
                                <span style="font-weight: bold;"> Cơ sở 1</span><br />
                                Địa chỉ: 14 Nguyễn Chánh( Hoàng Minh Giám kéo dài),<br />
                                Trung Hòa, Cầu Giấy , Hà Nội .<br />
                                Tel: 04 8585 1616 | 04 37 833 355<br />
                                Fax: 04 37 835 320<br />
                                Hotline: 098 328 7777| 0912 62 6060<br />
                                Website: http://gomsuminhlong.vn
                            </p>
                        </div>
                        <div class="footer-info-right" style="float: left; width: 48%; color: #222222;">
                            <span style="font-weight: bold;">Cơ sở 2</span><br />
                            Địa chỉ: 103/107 Láng Hạ , Đống Đa , Hà Nội .
                            <br />
                            Tel: 04 39 92 29 29 - 04 37 833 355<br />
                            Fax: 043 835 320<br />
                            Hotline: 098 328 7777| 0912 62 6060<br />
                            Website: http://gomsuminhlong.vn
                        </div>
                    </div>
                </div>
                
            </div>
        </div>
    </div>
</asp:Content>
